cpufreq: allow customization of some parameters
authorKeir Fraser <keir.fraser@citrix.com>
Fri, 5 Dec 2008 15:23:32 +0000 (15:23 +0000)
committerKeir Fraser <keir.fraser@citrix.com>
Fri, 5 Dec 2008 15:23:32 +0000 (15:23 +0000)
commit163429c065bfc3c57416827894be3881791c94be
treef3acc2edbeb0911ef1fcdd008f59b03a4d766de3
parent9755643ef2560fdb81ca9d3b7b881d79a323ce0c
cpufreq: allow customization of some parameters

Short of having a way for powersaved to dynamically adjust these
values, at least allow specifying them on the command line. In
particular, always running at an up-threshold of 80% is perhaps nice
for laptop use, but certainly not desirable on servers. On shell
scripts invoking large numbers of short-lived processes I noticed a
50% performance degradation on a dual-socket quad-core Barcelona just
because of the load of an individual core never crossing the 80%
boundary that would have resulted in increasing the frequency.

(Powersaved on SLE10 sets this on native kernels to 60% or 80%,
depending on whether performance or power reduction is preferred,
*divided* by the number of CPUs, but capped at the lower limit of
20%.)

Signed-off-by: Jan Beulich <jbeulich@novell.com>
xen/common/domain.c
xen/drivers/cpufreq/cpufreq_ondemand.c
xen/include/acpi/cpufreq/cpufreq.h